package com.example.controller.sys;

import java.util.Arrays;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.example.vo.ResultVo;
import com.github.pagehelper.PageInfo;
import com.example.pojo.EmpRole;
import com.example.service.IEmpRoleService;
import io.swagger.annotations.Api;
/**
 * <p>
 * 员工角色表 前端控制器
 * </p>
 *
 * @author wsl
 * @since 2022-05-05
 */
@RestController
@RequestMapping("/sys/emp-role")
@Api(tags = "员工角色表",value = "")
@CrossOrigin(allowCredentials = "true")
public class EmpRoleController {

    @Autowired
    private IEmpRoleService empRoleService;

    @ApiOperation(value = "修改员工角色权限列表")
    @PutMapping("/update")
    public ResultVo updateEmpRole(@RequestBody EmpRole empRole) {
        return empRoleService.updateEmpRole(empRole);
    }
}
